package com.microservice.base.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;

import java.io.Serializable;
import java.util.Date;

/**
 * @author jbx
 * @package_name com.microservice.base.entity
 * @create_date 2020/12/5 23:07
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Org implements Serializable {
    private static final long serialVersionUID = 6159396490322850004L;
    @Length(min = 0, max = 48)
    @ApiModelProperty(value = "主键:组织编号")
    private String orgId;
    @Length(min = 0, max = 32)
    @ApiModelProperty(value = "组织名称")
    private String orgName;
    @Length(min = 0, max = 48)
    @ApiModelProperty(value = "父级组织")
    private String parentOrgId;
    @Length(min = 0, max = 11)
    @ApiModelProperty(value = "状态信息:0正常,-1删除")
    private Integer status;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;
    @Length(min = 0, max = 11)
    @ApiModelProperty(value = "组织级别")
    private Integer orgLevel;
    @Length(min = 0, max = 11)
    @ApiModelProperty(value = "操作类型", notes = "0无变化,1更新,2新增")
    private Integer operation;
}
